package zhihui.mobile.bean.user;

import java.io.Serializable;

/**
 * Created by 张公铭 on 2017/6/30 0030.
 * 用户基本信息类
 */

public class UserInfo implements Serializable
{
    private String no;      //账号
    private String pwd;     //密码
    private String name = "";    //昵称
    private String tel;     //电话
    private Integer sex = 0;        //性别1：男，0：女
    private String house;   //小区ID
    private String token;
    private Object tails;
    private Integer id = 2;         //用户ID
    private Integer status;
    private String pic;      //头像id;
    private String clientid;    //设备Id
    private int store;          //门店ID


    public String getNo()
    {
        return no;
    }

    public String getPwd()
    {
        return pwd;
    }

    public String getName()
    {
        return name;
    }

    public String getTel()
    {
        return tel;
    }

    public int getSex()
    {
        return sex;
    }

    public void setSex(Integer sex)
    {
        this.sex = sex;
    }

    public void setHouse(String house)
    {
        this.house = house;
    }

    public void setToken(String token)
    {
        this.token = token;
    }

    public void setTails(Object tails)
    {
        this.tails = tails;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public void setPic(String pic)
    {
        this.pic = pic;
    }

    public String getClientid()
    {
        return clientid;
    }

    public int getStore()
    {
        return store;
    }

    public void setNo(String no)
    {
        this.no = no;
    }

    public void setPwd(String pwd)
    {
        this.pwd = pwd;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public void setTel(String tel)
    {
        this.tel = tel;
    }

    public void setSex(int sex)
    {
        this.sex = sex;
    }

    public void setClientid(String clientid)
    {
        this.clientid = clientid;
    }

    public String getHouse()
    {
        return house;
    }

    public String getToken()
    {
        return token;
    }

    public Object getTails()
    {
        return tails;
    }

    public Integer getId()
    {
        return id;
    }

    public Integer getStatus()
    {
        return status;
    }

    public String getPic()
    {
        return pic;
    }

    public void setStore(int store)
    {
        this.store = store;
    }

    @Override
    public String toString()
    {
        return "UserInfo{" +
                "no='" + no + '\'' +
                ", pwd='" + pwd + '\'' +
                ", name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", sex=" + sex +
                ", house='" + house + '\'' +
                ", token='" + token + '\'' +
                ", tails=" + tails +
                ", id=" + id +
                ", status=" + status +
                ", pic='" + pic + '\'' +
                ", clientid='" + clientid + '\'' +
                '}';
    }

    public static String getSex(int sex)
    {
        String value = "";
        switch (sex){
            case 0:
                value = "女";
                break;
            case 1:
                value =  "男";
                break;
            case 2:
                value = "保密";
                break;
        }
        return value;
    }
}
